//首页：产品分类接口
export function GetProductCats(){
  return httpGet('GetProductCats', '/business/client/product/catAll',{lazy:true})
}
//首页：友情链接
export function GetFrendLink(){
  return httpGet('GetFrendLink', '/system/client/sitelink/list')
}

//首页：核心优势
export function GetMainHrefInfo(){
  return httpGet('GetMainHrefInfo', '/business/client/module/getBaseModule',{lazy:true})
}

//首页：热点视频
export function GetVideoHotList(){
  return httpGet('GetVideoHotList', '/business/client/module/material/hot',{lazy:true})
}

//首页：新闻列表
export function GetNewsList(){
  return httpGet('GetNewsList', '/business/client/article/index/list',{lazy:true})
}

//首页：轮播图
export function GetMainCarouselList(){
  return httpGet('GetMainCarouselList', '/business/client/module/getBaseModule',{lazy:true})
}

//首页：根据分类id获取产品列表
export function GetProductListById(data:any){
  //静态传参
  return httpPost('GetProductListById', '/business/client/product/productByCatId',data)
  //动态传参
  // return httpPost('GetProductListById', '/business/client/product/productByCatId',()=>{
  //   //修改逻辑 
  //   return data
  // })
}

//登录：账号密码
export function LoginByPwd(data:any){
  return httpPost('LoginByPwd', '/business/client/member/login',data)
}

//登录：获取验证
export function GetImgCode(data:any){
  return httpGet('GetImgCode', '/business/client/kaptcha/image-code/'+data)
}

//登录：登出
export function Logout(data:any){
  return httpGet('Logout', '/business/client/member/loginout/'+data)
}

//登录：一键注册
export function OneRegister(data:any){
  return httpPost('OneRegister', '/business/client/member/registerAuto',data)
}

//登录：忘记密码
export function ForgetPwd(data:any){
  return httpPost('ForgetPwd', '/business/client/member/forgetPwd',data)
}

/**
 * 1.公司介绍
 */

//获取员工信息:ML为manager leader
export function GetStaffList(){
  return httpGet('GetStaffList', '/business/client/emp/getInfoByCat/'+'ML',{lazy:true})
}

//获取荣誉资质
export function GetHonorList(){
  return httpGet('GetHonorList', '/business/client/module/com/hornor/list',{lazy:true})
}

//获取公司介绍
export function GetCompanyInfo(){
  return httpGet('GetCompanyInfo', '/business/client/module/com/list',{lazy:true})
}
//公司首图

export function GetMainPic(){
  return httpGet('GetMainPic', '/business/client/module/com/mainPic',{lazy:true})
}